import requestClass from './request.js';
const request = new requestClass();

// 小程序授权手机号登录
export const onLoginApi = (paramsData) => {
	return request.post(`/system/auth/login/applet/default`, paramsData);
}
// 退出登录
export const onLogoutApi = (paramsData) => {
	return request.get(`/system/logout`, paramsData);
}

//小程序openId登录
export const onLoginOpenidApi = (paramsData) => {
	return request.post(`/system/auth/login/applet/openid`, paramsData);
}

//获取用户信息
export const getUserInfoApi = (paramsData) => {
	return request.get(`/system/user/info`, paramsData);
}